[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 putchar()               Write a Character to Stdout (Macro)

 #include   <stdio.h>

 int        putchar(c);
 int        c;                           Character to be written

    putchar() writes a single character 'C' to the standard output stream
    'stdout'.

       Returns:     The character written, if successful.  On error,
                    returns the value of EOF.  EOF is a legitimate value,
                    so use ferror() to verify that an error has occurred.

         Notes:     Putchar() is a Macro, and is equivalent to putc (c,
                    stdout).

   -------------------------------- Example ---------------------------------

    The following statements print the letters of the alphabet to the
    screen.

           #include <stdio.h>

           int x;

           main()
           {
               for (x = 65; x < 91; x++)
               putchar(x);
           }


See Also: fputc() getc() getchar()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson